<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <script src='icreate.js'></script>
    </head>
    <body>
        <div id="container"></div>
    <div id="control"></div>
    </body>
    <script>
    I('#container')[0].innerHTML=
    F.map(['名字','名字','名字','名字','名字','名字'],
    	function(v,i){
    	return '<input type="checkbox"> '+ v + '<br/>';
    }).join('');

    I('#control')[0].innerHTML='<button id="btn">click</button>';

    I('#btn')[0].onclick=function(){
    	I('#container input').each(function(){
    		this.checked =true;
    	})
    }


    </script>
</html>